<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		div{
			width: 200px;
			height: 200px;
			background: pink;
			transition: all 1s;
			/*	左上角为旋转点		*/
			transform-origin: center ;
		}
		div:hover{
			/*	rotate旋转  默认以中心为原点旋转		*/
			transform: rotate(360deg);
		}
	</style>
</head>
<body>
	<div></div>
</body>
</html>